import request from './request';

// 获取openid
export const getOpenId = (data) => {
	return request({
		url: '/b-pay/pay/channel/get_openid',
		method: 'POST',
		data
	})
}

// 获取支付通到列表
export const getChannelList = (data) => {
	return request({
		url: '/b-pay/pay/channel/get_config',
		method: 'POST',
		data
	})
}
// 获取商户信息
export const getMerchantInfo = (data) => {
	return request({
		url: '/b-pay/pay/channel/get_mch',
		method: 'POST',
		data
	})
}

// 下单
export const submitOrder = (data) => {
	return request({
		url: '/b-pay/order/submit',
		method: 'POST',
		data
	})
}